import mongoose from "mongoose";

export default async function dbPlugin(app) {
  const { MONGODB_URI } = app.getEnvs();
  await mongoose.connect(MONGODB_URI);
  console.log("db connected.");
}
